package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 工序对象 fm_process
 *
 * @author qijian
 * @date 2021-08-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("fm_process")
public class Process extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "唯一id")
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    @ApiModelProperty(value = "编码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    @ApiModelProperty(value = "类型")
    private String type;

    /** 准备时间 */
    @Excel(name = "准备时间")
    @ApiModelProperty(value = "准备时间")
    private Long prepareTime;

    /** 标准工时 */
    @Excel(name = "标准工时")
    @ApiModelProperty(value = "标准工时")
    private Long normTime;

    /** 报工方式 */
    @Excel(name = "报工方式")
    @ApiModelProperty(value = "报工方式")
    private String workWay;

    /** 检验标准id */
    @Excel(name = "检验标准id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验标准id")
    private Long testCriterionId;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "是否禁用")
    private Boolean isDisabled;

    @ApiModelProperty(value = "默认生产位置")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long defFactoryId;

    @ApiModelProperty(value = "下料工序下:数控还是锯切")
    private String skOrJq;
}
